package com.lgl.sqlSession.impl;

import com.lgl.prjo.Configuration;
import com.lgl.sqlSession.ISqlSession;
import com.lgl.sqlSession.ISqlSessionFactory;
import com.lgl.sqlSession.impl.DefaultSqlSession;

public class DefaultSqlSessionFactory implements ISqlSessionFactory {

    private Configuration configuration;

    public DefaultSqlSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }

    @Override
    public ISqlSession openSession() {
        return new DefaultSqlSession(configuration);
    }
}
